<!DOCTYPE html>
<html lang="en" dir="ltr">

<head>
  <meta charset="UTF-8">
  <title>Item - Media</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <link href="../../../../../css/ionic.bundle.css" rel="stylesheet">
  <link href="../../../../../scripts/testing/styles.css" rel="stylesheet">
  <script src="../../../../../scripts/testing/scripts.js"></script>
  <script nomodule src="../../../../../dist/ionic/ionic.js"></script>
  <script type="module" src="../../../../../dist/ionic/ionic.esm.js"></script></head>

<body>
  <ion-app>

    <ion-header>
      <ion-toolbar>
        <ion-title>Item Media</ion-title>
      </ion-toolbar>
    </ion-header>

    <ion-content id="content">
      <ion-item onclick="testClick(event)">
        <ion-avatar slot="start">
          <img src="">
        </ion-avatar>
        <ion-label>
          Media/Avatar left, button.item
        </ion-label>
      </ion-item>

      <ion-item href="#">
        <ion-label>
          Media/Avatar right, a.item
        </ion-label>
        <ion-avatar slot="end">
          <img src="">
        </ion-avatar>
      </ion-item>

      <ion-item>
        <ion-avatar slot="start">
          <img src="">
        </ion-avatar>
        <ion-label>
          Media/Avatar, right button
        </ion-label>
        <ion-button fill="outline" slot="end">View</ion-button>
      </ion-item>

      <ion-item href="#">
        <ion-avatar slot="start">
          <img src="">
        </ion-avatar>
        <ion-label>
          <h2>H2 Title Text</h2>
          <p>Paragraph text</p>
        </ion-label>
      </ion-item>

      <ion-item href="#">
        <ion-label>
          Media/Thumbnail right side, a.item
        </ion-label>
        <ion-thumbnail slot="end">
          <img src="">
        </ion-thumbnail>
      </ion-item>

      <ion-item>
        <ion-thumbnail slot="start">
          <img src="">
        </ion-thumbnail>
        <ion-label>
          <h2>H2 Title Text</h2>
          <p>Button on right</p>
        </ion-label>
        <ion-button fill="outline" slot="end">View</ion-button>
      </ion-item>

      <ion-item onclick="testClick(event)">
        <ion-thumbnail slot="start">
          <img src="">
        </ion-thumbnail>
        <ion-label>
          <h3>H3 Title Text</h3>
          <p>Icon on right</p>
          <p>Vertically align top</p>
          <p>button.item</p>
        </ion-label>
        <ion-icon name="close-circle" slot="end"></ion-icon>
      </ion-item>
    </ion-content>

  </ion-app>

  <script>
    function testClick(ev) {
      console.log('CLICK!', ev.target.tagName, ev.target.textContent.trim());
    }
  </script>
</body>

</html>
